<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://lib.baomitu.com/layui/2.6.5/css/layui.css">
    <link rel="stylesheet" href="/assets/module/soulTable/soulTable.css">
    <title>layui</title>
    <style>
        #demo {
            width: 400px;
            height: 400px;
        }

        .layui-form-checkbox {
            display: none;
        }

        .layui-form input[type=checkbox] {
            display: inline-block;
            width: 15px;
            height: 15px;
        }
    </style>
</head>

<body>
    <div class="layui-form">
        <div class="layui-form-item">
            <label for="input1" class="layui-form-label">输入框</label>
            <div class="layui-input-block">
                <input id="input1" type="text" name="title" required lay-verify="required" placeholder="请输入标题"
                    autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码框</label>
            <div class="layui-input-inline">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"
                    autocomplete="off" class="layui-input">
            </div>
            <div>
                <input id="checkbox1" type="checkbox" name="like[write]"> <label for="checkbox1">选项A</label>
                <input id="checkbox2" type="checkbox" name="like[read]"> <label for="checkbox2">选项B</label>
                <input id="checkbox3" type="checkbox" name="like[dai]"> <label for="checkbox3">选项C</label>
            </div>


            <button id="button">dddd</button>
        </div>

        <!-- <script src='../js/common.js'></script> -->
        <script src="https://cdn.bootcdn.net/ajax/libs/layui/2.4.3/layui.all.js"></script>
        <script>
            layui.config({
                base: 'assets/module/'
            }).use(['tree', 'util'], function () {
                var $ = layui.jquery
                var layer = layui.layer
                var form = layui.form
                var tree = layui.tree
                var util = layui.util

                console.log(layui.index)

                $('#button').click(function () {
                    window.open('https://www.qcc.com/', '_blank')
                })

                back()

                function back(num = -1) {
                    console.log('num', num)
                    window.history.go(num)
                }

            })

        </script>
</body>

</html>